package com.jlnk.petdemo.view;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import android.os.Bundle;

import com.jlnk.petdemo.R;
import com.jlnk.petdemo.databinding.ActivityPetDetailBinding;
import com.jlnk.petdemo.entity.PetModel;

public class PetDetailActivity extends AppCompatActivity {
    private ActivityPetDetailBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this, R.layout.activity_pet_detail);
        PetModel petModel = getIntent().getParcelableExtra("PET_DETAIL");
        binding.setPetModel(petModel);
    }
}